package com.elong.qadev.service.impl;

import java.io.Serializable;
import java.util.ArrayList;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.elong.qadev.dao.MenuDaoI;
import com.elong.qadev.entity.MenuItem;
import com.elong.qadev.service.MenuServiceI;
/**
 * 
 * @author kangchen
 *
 */
@Service("menuService")
public class MenuServiceImpl implements MenuServiceI {
	Logger logger = Logger.getLogger(MenuServiceImpl.class);
	@Autowired
	private MenuDaoI menuDao;
	
	@Override
	public ArrayList<MenuItem> getMenus() {
		
		return menuDao.getAllMenus();
	}

	@Override
	public Serializable save(MenuItem mi) {
		logger.info("运行MenuServiceImpl");
		return menuDao.save(mi);
	}

	

}
